<?php

declare (strict_types = 1);

namespace app\store\model\game;

use app\common\model\game\Game as GameModel;
use think\model\relation\HasOne;

/**
 * 游戏分类模型
 * Class Category
 * @package app\store\model
 */
class Game extends GameModel
{
    protected $hidden = [
        'is_del',
        'created_at',
        'updated_at'
    ];

    public function room():HasOne
    {
        return $this->hasOne(Room::class,'room_id','room_id');
    }

    public function category():HasOne
    {
        return $this->hasOne(Category::class,'id','category_id');
    }

}
